package com.seednia.module.core.xport;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 * 
 * @author Young Suk Ahn
 *
 */
@XmlRootElement(name = "XportDataContainer", 
		namespace = "http://cmu.edu/tx/1.0/core")
@XmlType(name = "XportDataContainer")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class XportDataContainer implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5598335775383725290L;
	
	private Class<?> expotingType = null;

	private Date exportDate = new Date();
	private String comments = "";
	
	
	private List<XportData> xportDataList = new ArrayList<XportData>();
	
	public XportDataContainer()
	{
	}

	public Class<?> getExpotingType() {
		return expotingType;
	}

	public void setExpotingType(Class<?> expotingType) {
		this.expotingType = expotingType;
	}

	public Date getExportDate() {
		return exportDate;
	}

	public void setExportDate(Date exportDate) {
		this.exportDate = exportDate;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	@XmlElementWrapper(name="XportDataList")
	@XmlElement(name="XportData")
	public List<XportData> getXportDataList() {
		return xportDataList;
	}

	public void setXportDataList(List<XportData> xportDataList) {
		this.xportDataList = xportDataList;
	}
	

	public void addXportData(XportData xportData) {
		this.xportDataList.add(xportData);
	}
}
